import Vue from 'vue';
import App from './App.vue';
import router from '@/router';
import store from '@/store';
import VueCookie from 'vue-cookie';
import '@/element-ui';
// import '@/element-ui-theme';
import 'element-ui/lib/theme-chalk/index.css';
import requestAxios from '@/utils/requestAxios';
import { isAuth } from '@/utils';
import '@/icons';
import '@/assets/scss/index.scss';

//引入自定义指令
import '@/utils/directive/index';

Vue.use(VueCookie);
Vue.prototype.$http = requestAxios; // 注册全局ajax请求方法
Vue.prototype.isAuth = isAuth; // 注册全局权限方法
Vue.prototype.$eventBus = new Vue(); //注册全局eventBus

Vue.config.productionTip = false;

new Vue({
    router,
    store,
    render: h => h(App),
}).$mount('#app');
